<#include "/common/layout.ftl">


<@layout >
    <div class="frame-content">
        <table id="log-table"></table>
    </div>
</@layout>
<@style>

</@style>
<@script>
    <script type="text/javascript">

        HsUtils.initDataTable("#log-table", "/admin/log/got_logs", "", [
            {field: 'id', title: '#'},
            {field: 'module', title: '模块'},
            {field: 'ip', title: 'ip'},
            {field: 'params', title: '参数'},
            {field: 'path', title: '请求地址'},
            {field: 'timeConsuming', title: '耗时'},
            {
                field: 'logType',
                title: '日志类型',
                formatter: function (value, row, index) {
                    if (row.logType == 0) {
                        return '系统';
                    } else if (row.logType == 1) {
                        return '接口';
                    } else if (row.logType == 2) {
                        return '定时任务';
                    }
                }
            },
            {field: 'createTime', title: '操作时间'},
            {field: 'username', title: '操作人'},
        ]);


    </script>




</@script>
